package org.lcc.Service;

import com.github.pagehelper.PageInfo;
import org.lcc.model.VO.QuestionAllVo;
import org.lcc.model.VO.SearchSet;
import org.lcc.model.entity.Question;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface QuestionService {
    //批量导入试题
    boolean batchInsertion(List<Question> questions);
    //单独导入试题
    Boolean importQuestion(Question question);
    //查询试题
    Question selectQuestion(Integer questionId);
    //修改试题
    Boolean updateQuestion(Question question,Integer questionId);
    //批量/单独删除试题
    Boolean deleteQuestions(List<Integer> questionIds);
    //搜索题目
    SearchSet searchQuestion(String questionName, String type, String difficulty);
    //获取题库里面的试题
    PageInfo<QuestionAllVo> selectQuestionAll(String questionName,
                                              String type,
                                              String difficulty,
                                              String subject,
                                              String keyword,
                                              Integer page,
                                              Integer size);
}
